<body xmlns:th="http://www.thymeleaf.org">
<div class="container" >
 
<!--/*@thymesVar id="user" type="com.xxrl.shop.domain.User"*/-->
<form th:action="@{/user}" method="post" th:object="${userModel.user}" id="userForm">
	<input type="hidden" name="id" th:value="*{id}">
	
<!--	<div class="form-group ">-->
<!--		<label for="username" class="col-form-label">账号</label>-->
<!--		<input type="text" class="form-control" id="username" name="username"  th:value="*{username}" maxlength="50" placeholder="请输入账号，至少3个字符，至多20个">-->

<!--	</div>-->
	<div class="form-group">
		<label for="email" class="col-form-label">邮箱</label>
		<input type="email" class="form-control" id="email" name="email" th:value="*{email}" maxlength="50" placeholder="请输入邮箱">
	</div>
	<div class="form-group">
		<label for="name" class="col-form-label">姓名</label>
		<input type="text" class="form-control" id="name" name="name" th:value="*{name}" maxlength="20" placeholder="请输入姓名，至少2个字符，至多20个" >
	</div>
	<div class="form-group">
		<label for="phone" class="col-form-label">电话号码</label>
		<input type="text" class="form-control" id="phone" name="phone"  th:value="*{phone}" maxlength="30" placeholder="请输入电话号码" >
	</div>
	<div class="form-group">
		<label for="password" class="col-form-label">密码</label>
		<input type="password" class="form-control" id="password" name="password"  th:value="*{password}" maxlength="30" placeholder="请输入密码" >
	</div>

	<button type="submit">提交</button>
	<div class="form-group">
		<label for="role" class="col-form-label">角色</label>
  		<select id="role" name="role" class="form-control form-control-chosen" data-placeholder="请选择">
		  <option value="ADMIN">管理员</option>
		  <option value="USER">普通用户</option>
		</select>
	</div>
</form>
 
</div>
</body>
<!-- /.container -->
 